package com.webas.pages;

import org.apache.tapestry5.ioc.annotations.Inject;

import com.webas.api.auth.annotations.AnonymousAccess;
import com.webas.api.auth.services.Authenticator;
/**
 * 
 * @author tkhasano
 *
 */
@AnonymousAccess
public class Index
{
    @Inject
    private Authenticator authenticator;

    public Object onActivate()
    {
        return authenticator.isLoggedIn()
        	? Search.class
        	: Signin.class;
    }
    
    public String getPart2() {
    	return "Part 2";
    }
}
